﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.backStage
{
    public partial class searchPost : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack)
            {
                return;
            }

            int page = 1;
            if (Request.QueryString["pageNo"] != null && Request.QueryString["pageNo"].Length > 0)
            {
                page = Int32.Parse(Request.QueryString["pageNo"]);
            }
            string title = TextBox1.Text;
            int totalItemNum = BLL.backStage.PostManager.FillSearchTable(Table2, title, page);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            int page = 1;
            if (Request.QueryString["pageNo"] != null && Request.QueryString["pageNo"].Length > 0)
            {
                page = Int32.Parse(Request.QueryString["pageNo"]);
            }
            string title = TextBox1.Text;
            int totalItemNum = BLL.backStage.PostManager.FillSearchTable(Table2,title,page);

        }
    }
}